module top_module( 
    input a, b, sel,
    output out );
    
    assign out = (sel) ? b : a;
    
endmodule
//https://hdlbits.01xz.net/wiki/Mux2to1